import { MailOutlined} from '@ant-design/icons';
import { FC } from 'react';

interface NavProps {
  identify: string,
  name: string,
  icon?: FC,
  children?: NavProps[];
}
export type GetNavProps = NavProps[]

export const getNav = () => {
  const nav: GetNavProps = [
    {
      identify: '/index',
      name: '首页',
      icon: MailOutlined
    },
    {
      identify: "/member_list",
      name: "会员",
      icon: MailOutlined,
      children: [
        {
          identify: "/member_detail",
          name: "会员详情"
        }
      ]
    },
    {
      identify: "/shop_member_list",
      name: "顾客",
      icon: MailOutlined,
      children: [
        {
          identify: "/shop_member_detail",
          name: "顾客详情"
        }
      ]
    },
    {
      identify: '/TsTestComponent',
      name: 'TsTestComponent',
      icon: MailOutlined
    },
    {
      identify: '/Notfound',
      name: '404',
      icon: MailOutlined
    },
  ]
  return {
    nav: nav
  }
}
